package com.chezhujie.www.domain;

import com.xy.core.init.mysql.BaseEntity;
import com.xy.core.init.mysql.annotation.Column;
import com.xy.core.init.mysql.annotation.Entity;
import com.xy.core.init.mysql.annotation.Id;
import com.xy.core.init.mysql.annotation.Table;

import java.util.Date;

/**
 * Created by 汤伟杰 on 2017/6/29.
 */
@Entity
@Table(name = "czj_shopcar",describe = "购物车")
public class Czjshopcar extends BaseEntity{
    @Id
    @Column(length = 19,inputType = "hidden",describe = "主键")
    private String shopcarId;//主键
    @Column(length = 11,inputType = "select",describe = "用户",inputCode = "int")
    private Integer userId;//购物车关联用户
    @Column(length = 19,inputType = "select",describe = "商品",inputCode = "str")
    private String commodityId;//购物车关联商品
    @Column(length = 19,inputType = "select",describe = "商家",inputCode = "str")
    private String businessId;//购物车关联商家
    @Column(length = 11,inputType = "int",describe = "购买数量")
    private Integer count;//商品购买数量
    @Column(length = 255,inputType = "text",describe = "内容")
    private String content;//商品购买内容 （例如：内存:8G;cpu:i7-7700K）
    @Column(inputType = "date",describe = "加入购物车时间")
    private Date createtime;//商品加入购物车时间
    private Date createtimeStart;//查询开始时间
    private Date createtimeEnd;//查询结束时间

    public String getShopcarId() {
        return shopcarId;
    }

    public void setShopcarId(String shopcarId) {
        this.shopcarId = shopcarId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getCreatetimeStart() {
        return createtimeStart;
    }

    public void setCreatetimeStart(Date createtimeStart) {
        this.createtimeStart = createtimeStart;
    }

    public Date getCreatetimeEnd() {
        return createtimeEnd;
    }

    public void setCreatetimeEnd(Date createtimeEnd) {
        this.createtimeEnd = createtimeEnd;
    }
}
